package com.lichuang.dedao.curriculum.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("curriculum_type")
@ApiModel(value = "CurriculumType对象", description = "课程类型")
public class CurriculumType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程类型id")
    private Integer id;

    @ApiModelProperty(value = "课程类型名字")
    private String name;

    @ApiModelProperty(value = "简介")
    private String introduce;

    @ApiModelProperty(value = "父类目id")
    private Integer parentsId;

    @ApiModelProperty(value = "描述")
    private String describes;

    @ApiModelProperty(value = "是否是父id")
    private Integer isParent;

    @ApiModelProperty(value = "数量")
    private Integer count;

    @TableField(exist = false)
    private Set<CurriculumType> typesSet = new HashSet<>();

}
